import Vue from 'vue'
import Router from 'vue-router'
import Test from '../components/test/test';
import Error from '../components/test/Error';

import Home from '../components/home/Home';
import Mall from '../components/mall/Mall';
import Discover from '../components/discover/Discover';
import Mine from '../components/mine/Mine';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    // 测试组件的使用页面
    {path:'/test',name:'test',component:Test},

    // 报错页面的跳转
    {path:'*',name:'Error',component:Error},

    {path:'/Home',name:'Home2',component:Home},
    {path:'/Discover',name:'Discover',component:Discover},
    {path:'/Mall',name:'Mall',component:Mall},
    {path:'/Mine',name:'Mine',component:Mine},


  ]
})
